package uqbar.comm;

import uqbar.comm.protocol.InputFactory;

public class InputFactoryDecorator<Input> implements InputFactory<Input> {

	private InputFactory<Input> decorated;

	protected InputFactoryDecorator(final InputFactory<Input> decorated) {
		this.decorated = decorated;
	}

	protected InputFactory<Input> getDecorated() {
		return this.decorated;
	}

	@Override
	public Input create(final String type, final byte[] content) {
		return this.getDecorated().create(type, content);
	}

}
